const Mock = require('mockjs')

const Random = Mock.Random

const typeArr = ['已激活','未激活']



module.exports = function (req) {
  const result = Mock.mock({
    "list|1-30": [{
      id: "@id()", // 随机id
      name: "@cname()", // 随机名字
      date: "@date()", // 随机日期
      "limit|1-4":4,
      "status":Random.boolean(),
      "statusName|1":typeArr
    }],
    "pageNo|+1":1,
    pageSize:10,
    total:30
})
  return {
    "result": result,
    "error": null,
    "success": true,
    "code": "10000",
    "datetime": Date.now(),
  }
};
